//
//  UMConfig.m
//  LYGame
//
//  Created by KevinWang on 2017/7/20.
//  Copyright © 2017年 花花. All rights reserved.
//

#import "UMConfig.h"
#import "UMSocialCore/UMSocialCore.h"
#import "UMMobClick/MobClick.h"

@implementation UMConfig
+ (void)accountConfig
{
    [[UMSocialManager defaultManager] openLog:YES];
    
    [[UMSocialManager defaultManager] setUmSocialAppkey:UMACCOUNT];
    
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_QQ appKey:UMQQ_APPID appSecret:nil redirectURL:@"http://www.umeng.com/social"];
    
    /* 设置微信的appKey和appSecret */
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:UMWX_APPID appSecret:UMWX_APPSecret redirectURL:@"http://mobile.umeng.com/social"];
    
    /* 设置新浪的appKey和appSecret */
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_Sina appKey:UMWB_APPID  appSecret:UMWB_APPSecret redirectURL:@"https://api.weibo.com/oauth2/default.html"];
    
    // umeng 统计
    UMConfigInstance.appKey = UMACCOUNT;
    UMConfigInstance.channelId = @"App Store";
    [MobClick startWithConfigure:UMConfigInstance];//配置以上参数后调用此方法初始化SDK！
}
@end
